﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZP.Common
{
    public class ZPFlagType
    {
        /// <summary>
        /// 正常-有效
        /// </summary>
        public const int YES = 1;
        /// <summary>
        /// 删除-无效
        /// </summary>
        public const int NO = 0;
    }

    /// <summary>
    /// 用户锁定状态
    /// </summary>
    public enum ZPUserLockedType
    {
        /// <summary>
        /// 锁定
        /// </summary>
        Locked = 1,
        /// <summary>
        /// 正常
        /// </summary>
        Normal = 0,
    }

    public enum EPHonorType
    {
        /// <summary>
        /// 附件
        /// </summary>
        File = 1,
        /// <summary>
        /// 文字
        /// </summary>
        Text = 2,
        /// <summary>
        /// 数字
        /// </summary>
        Number = 3
    }

    public class ZPBaseType
    {
        /// <summary>
        /// 员工类别
        /// </summary>
        public const string EMPLOYEE_TYPE = "EMPLOYEE_TYPE";
        public const string EMPLOYEE_TYPE_CN = "员工类别";
        /// <summary>
        /// 商品类别
        /// </summary>
        public const string GOODS_TYPE = "GOODS_TYPE";
        public const string GOODS_TYPE_CN = "商品类别";
        /// <summary>
        /// 计量单位
        /// </summary>
        public const string GOODS_UNIT = "GOODS_UNIT";
        public const string GOODS_UNIT_CN = "计量单位";
        /// <summary>
        /// 材质
        /// </summary>
        public const string MATERIAL = "MATERIAL";
        public const string MATERIAL_CN = "材质";
        /// <summary>
        /// 规格型号
        /// </summary>
        public const string GOODS_STANDARD = "GOODS_STANDARD";
        public const string GOODS_STANDARD_CN = "规格型号";
        /// <summary>
        /// 颜色
        /// </summary>
        public const string COLOR = "COLOR";
        public const string COLOR_CN = "颜色";
        /// <summary>
        /// 品牌
        /// </summary>
        public const string BRAND = "BRAND";
        public const string BRAND_CN = "品牌";

        /// <summary>
        /// 型号
        /// </summary>
        public const string GOODS_MODEL = "GOODS_MODEL";
        public const string GOODS_MODEL_CN = "型号";


        public const string GOODS_CESHIXIANGMU = "GOODS_CESHIXIANGMU";
        public const string GOODS_CESHIXIANGMU_CN = "  原辅材料-测试项目";

        public static Dictionary<string, string> GetParams()
        {
            Dictionary<string, string> dic = new Dictionary<string, string>();
            dic.Add(EMPLOYEE_TYPE, EMPLOYEE_TYPE_CN);
            dic.Add(GOODS_TYPE, GOODS_TYPE_CN);
            dic.Add(GOODS_UNIT, GOODS_UNIT_CN);
            dic.Add(MATERIAL, MATERIAL_CN);
            dic.Add(GOODS_STANDARD, GOODS_STANDARD_CN);
            dic.Add(COLOR, COLOR_CN);
            dic.Add(BRAND, BRAND_CN);
            dic.Add(GOODS_CESHIXIANGMU, GOODS_CESHIXIANGMU_CN);
            return dic;
        }
    }
}
